package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
import java.util.List;

@Data
@TableName("t_file_destruction")
public class FileDestruction {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String destructionReason;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date destructionDate;
    private String approver;
    private String reviewer;
    private String auditor;
    private String handler;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    @TableLogic
    private Boolean isDeleted;

    @TableField(exist = false)
    private List<FileDestructionDetail> details;
}